/*
Main Website Page CSS with responsive design
*/

/* Reset default browser styles and set box-sizing for all elements */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Set base styles for the body */
body {
    background-color: #000; /* Black background color */
    color: #fff; /* White text color */
}

/* Main container that holds all content */
.main-container {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Minimum height equal to viewport height */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Container for the main content area */
.content-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 40px); /* Height equals viewport height minus footer height */
}

/* Style for the hero/background image */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Makes image cover the container while maintaining aspect ratio */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* z-index for stacking order */
    opacity: 0.9;
}

/* Navigation bar styling */
nav {
    display: flex;
    justify-content: center; /* Center the nav content horizontally */
    width: 100%;
    padding: 20px 0;
    position: relative;
    z-index: 2; /* Placed above the hero image */
}

/* Container for navigation elements */
.nav-container {
    display: flex;
    justify-content: space-between;
    width: 80%; /* Control the width of the nav area */
    max-width: 1200px;
}

/* Styling for navigation links container */
.nav-links {
    display: flex;
    gap: 30px; /* Spacing between links */
}

/* Style for individual navigation links */
.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px; /* Add padding for better touch targets */
}

/* Hover effect for navigation links */
.nav-links a:hover {
    background-color: #45a049;
    border-radius: 4px;
}

/* Style for the login button */
.login-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #4CAF50; /* Green background */
    color: #000; /* Black text */
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    font-weight: bold;
}

/* Hover effect for login button */
.login-btn:hover {
    background-color: #45a049; /* Slightly darker green on hover */
}

/* Container for hero text content */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
    z-index: 2; /* Lower z-index so menus can appear on top */
    text-align: center;
    width: 80%; /* Control width for better responsiveness */
    max-width: 600px; /* Maximum width */
    pointer-events: none; /* This allows clicks to pass through to elements behind */
}

/* Main title style */
.hero-title {
    font-size: 48px;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Subtitle style */
.hero-subtitle {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
}

/* Get started button style */
.get-started-btn {
    display: inline-block;
    background-color: #4CAF50; /* Green background */
    color: #000; /* Black text */
    padding: 10px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: bold;
    pointer-events: auto; /* Enable clicking this button even if parent has pointer-events: none */
    position: relative; /* Ensure it's clickable */
}

/* Hover effect for get started button */
.get-started-btn:hover {
    background-color: #45a049; /* Slightly darker green on hover */
}

/* Footer text styling */
.footer-text {
    background-color: #000;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    z-index: 2;
    font-size: 16px;
    height: 40px;
}

/* Main footer styling */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    margin-top: 20px;
    position: relative;
}

/* Footer text style - redundant with above, consider consolidating */
.footer-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Container for footer content */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Social media icons container */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

/* Individual social media icon styling */
.social-icons a {
    color: #fff;
    font-size: 22px;
    transition: 0.3s; /* Smooth transition for hover effect */
}

/* Hover effect for social media icons */
.social-icons a:hover {
    color: #4CAF50; /* Green color on hover */
    transform: scale(1.2); /* Slightly increase size on hover */
}

/* Footer credits text styling */
.footer-credits {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.8;
}

/* Copyright text styling */
.copyright {
    font-size: 14px;
    font-weight: bold;
}

/* Dark overlay on top of the hero image */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

/* Mobile menu toggle button (hidden by default) */
.menu-toggle {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999; /* Very high z-index to ensure it's on top */
    background: #4CAF50;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3); /* Add shadow for better visibility */
}

/* Media query for tablets (max-width: 1024px) */
@media screen and (max-width: 1024px) {
    /* Adjust hero content positioning for tablets */
    .hero-content {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80%;
        text-align: center;
    }
    
    /* Reduce font sizes for tablets */
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 30px;
    }
    
    /* Adjust login button position for tablets */
    .login-btn {
        top: 15px;
        right: 15px;
    }
}

/* Media query for mobile devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    /* Show the menu toggle button on mobile */
    .menu-toggle {
        display: block;
    }
    
    /* Adjust navigation for mobile */
    nav {
        padding: 10px 0;
    }
    
    /* Change navigation links to vertical on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%; /* Hide off-screen by default */
        width: 70%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95); /* More opaque for better contrast */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        transition: 0.3s ease-in-out;
        z-index: 9998; /* Very high z-index but less than menu toggle */
    }
    
    /* Style for open mobile menu */
    .nav-links.active {
        left: 0; /* Show when active */
    }
    
    /* Style for mobile menu links - smaller text size */
    .nav-links a {
        font-size: 16px; /* Reduced from 20px */
        padding: 10px 20px;
        width: 100%;
        text-align: center;
    }
    
    /* Adjust login button position for mobile */
    .login-btn {
        top: 15px;
        right: 70px; /* Move to left of menu toggle */
        padding: 8px 12px;
        font-size: 12px;
    }
    
    /* Further reduce font sizes for mobile */
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    /* Make the get started button more prominent on mobile */
    .get-started-btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* Adjust footer for mobile */
    .footer-text {
        font-size: 14px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icons a {
        font-size: 18px;
    }
    
    .footer-credits, .copyright {
        font-size: 12px;
    }
}

/* Media query for very small devices (max-width: 480px) */
@media screen and (max-width: 480px) {
    /* Further adjustments for very small screens */
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .login-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
}